package com.treasure.mall.biz.service.core.integral;

import com.treasure.mall.biz.base.SearchableCrudService;
import com.treasure.mall.biz.dto.integral.IntegralOrderCreateDTO;
import com.treasure.mall.biz.entity.integral.IntegralOrderPO;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author allan
 * @version 1.0.0
 * @date 2020/8/22
 */
public interface IntegralOrderService extends SearchableCrudService<IntegralOrderPO, String> {
    /**
     * 订单创建
     *
     * @param createDTO
     * @return
     */
    @Transactional
    IntegralOrderPO create(IntegralOrderCreateDTO createDTO);

    /**
     * 订单发货
     *
     * @param orderId
     * @param expressNo
     * @param expressCompany
     */
    void deliver(String orderId, String expressNo, String expressCompany);
}
